package com.xuhuan.demo.pattern.prototype.improve;

/**
 * @author huan.xu
 * @date 2021/10/4 22:15
 * @description
 */
public class Client {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom", 3, "白色");

        Sheep sheep2 = (Sheep) sheep.clone();
        Sheep sheep3 = (Sheep) sheep.clone();
        Sheep sheep4 = (Sheep) sheep.clone();

        System.out.println("sheet2 =" + sheep2);
        System.out.println("sheet3 =" + sheep3);
        System.out.println("sheet4 =" + sheep4);
    }
}
